<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "shop");
%>
<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<t:panel>
	<t:form   modelAttribute="supplyCargo" action="/shop/supplyCargo/save" cssClass="form-horizontal">
		  <div class="hide">
                <t:hidden path="id"/>
                <t:hidden path="deleteMark"/>
                <t:hidden path="supplierId"/>
            </div>
            <t:formgroup>
                <t:label path="cargoId" cssClass="col-xs-2" />
                <t:select2 allowClear="true" data-width="100%"  multiple="multiple"  placeholder="请选择商品" path="cargoId" colClass="col-sm-10"  />
            </t:formgroup>
            <t:formgroup>
                <t:label path="supplierId" cssClass="col-xs-2" />
                <t:select2 allowClear="true" data-width="100%"  placeholder="请选择商品" path="supplierId" colClass="col-sm-10"  />
            </t:formgroup>
            <t:formgroup>
                <t:label path="shopId" cssClass="col-xs-2" />
                <t:input path="shopId" colClass="col-xs-10" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="comment" cssClass="col-xs-2" />
                <t:input path="comment" colClass="col-xs-10" />
            </t:formgroup>
	</t:form>
	<t:panelFoot headingBtnCssClass="heading-btn pull-left-important">
		<t:button icon="icon-floppy-disk" onclick="saveData()" laddaType="progress" cssClass="btn-info" csize="sm">保存</t:button>
	</t:panelFoot>
</t:panel>

<script type="text/javascript">

function saveData(lBtn){
	if (!$("form:first").valid()){
		return;
	}
	lBtn.start();
	$("form:first").submit();
}	


</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formtags.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formbuttons.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
